# $Id: PKGBUILD 183393 2013-04-21 22:10:14Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=gnome-power-manager
pkgver=3.8.1
pkgrel=1
pkgdesc="System power information and statistics"
arch=(i686 x86_64)
url="http://www.gnome.org/projects/gnome-power-manager/"
license=(GPL)
depends=(gtk3 upower dconf hicolor-icon-theme)
makedepends=(intltool)
options=(!emptydirs)
install=gnome-power-manager.install
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
sha256sums=('f5b5ef2282fae3bcdcc8473af3cc5e32ad7ac7e2444fc93abf00c3d2967361bf')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var \
      --libexecdir=/usr/lib/gnome-power-manager \
      --disable-schemas-compile
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
